﻿using MengLin.OOP.DesignPattern.WMS_LC4.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.WMS_LC4.Implements.HardwarePlatform
{
    /// <summary>
    /// Nimbus2.0硬件平台气压传感器(低成本硬件的平台)
    /// </summary>
    public class Nimbus2_0BarometricPressureSensor : IBarometricPressureSensor
    {
        /// <summary>
        /// Nimbus2.0硬件平台读取大气压力
        /// </summary>
        /// <returns></returns>
        public double Read()
        {
            Console.WriteLine($"{nameof(Nimbus2_0BarometricPressureSensor)} Read Barometric Pressure");
            double currentBarometricPressure = 36;//假设当前大气压力
            return currentBarometricPressure;
        }
    }
}
